<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib  uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title></title>
		<link href="css/table.css" rel="stylesheet" type="text/css" />
		<link href="css/background.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
		<script type="text/javascript" src="js/table.js"></script>
		<script type="text/javascript" src="js//My97DatePicker/WdatePicker.js"></script>
		<script type="text/javascript">
	function page(currentPage){
		$("#pageId").val(currentPage);
		document.pageForm.submit();
	}
function clearInfo(){
	$("#account").val("");
	$("#name").val("");
	$("#year").val("");
	$("#orgName").val("");
	document.searchForm.submit();
}	


</script>
	</head>
	<body>
		<div class="topdiv">
			<form action="getLeaveTotalList.action" method="post" name="searchForm">
				<div>
					帐户：<input type="text"  id="account" name="account" value="${account}" />
					&nbsp; 姓名：<input type="text"  id="name" name="name" value="${name}" />
					&nbsp;部门：
					<input type="text"  id="orgName" name="orgName" value="${orgName}" style="width: 120px;"/>
					&nbsp;
					年份：<input  type="text" id="year" name="year" value="${year}" width="60px" readonly="readonly" class="Wdate" onclick="WdatePicker({dateFmt: 'yyyy', isShowToday: false, isShowClear: true});"/>
				</div>
				<table align="right">
				 <tr>
					<td>
						<input class="button_04" type="submit" value="立即查找" />
				 		<input align="right"  class="button_02" type="button" onclick="clearInfo()" value="清除" />
					</td>
				 </tr>
				</table>
			</form>
		</div>
		<table  border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<td style="background: url('image/wsoa_window_002.gif');" width="1"></td>
					<td style="background: url('image/wsoa_window_002.gif');">
						<table border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td align="center"
										style="background: url('image/wsoa_window_002.gif');"
										width="10">
										<img src="image/center_19.gif">
									</td>
									<td align="center"
										style="background: url('image/wsoa_window_002.gif');"></td>
									<td>
										工作流程 &gt; 假期统计 &gt; 请假统计
									</td>
								</tr>
						</table>
					</td>
					<td style="background: url('image/wsoa_window_002.gif');" width="1"></td>
				</tr>
				<tr>
					<td style="background: url('image/wsoa_window_010.gif');" width="1">&nbsp;</td>
					<td>
						<table class="intable">
							<tr>
								
							</tr>
						</table>
						<table id="tabllist" class="righ_list" frame="box" cellspacing="1" cellpadding="0" width="100%" border="0">
							<tr class="reigh_list2">
								<th align="left" class="bg_tr" width="5%">
									<input type="checkbox" onclick="checkAll()" id="all">
								</th>
								<th align="left" width="15%" >
									账户
								</th>
								<th align="left" width="15%" >
									姓名
								</th>
								<th align="left" >
								    所属部门
								</th>
								<th align="left" width="10%">
									 事假
								</th>
								<th align="left" width="10%">
									 病假
								</th>
							</tr>
							<c:if test="${empty leaveList}">
								<tr id="row">
									<td colspan="6">
										没有相关记录！
									</td>
								</tr>
							</c:if>
							<c:forEach items="${leaveList}" var="leave">
								<tr id="row" onmouseover="overStyle(this)"
									onmouseout="outStyle(this)">
									<td align="center">
										<input type="checkbox" name="ids" value="${leave.userId}">
									</td>
									<td>
										${leave.account}
									</td>
									<td>
										${leave.name}
									</td>
									<td>
										${leave.orgName}
									</td>
									<td>
										${leave.days1}
									</td>
									 <td>
										${leave.days2}
									</td>
								</tr>
							</c:forEach>
						</table>
					</td>
					<td style="background: url('image/wsoa_window_006.gif');" width="1">
						&nbsp;
					</td>
				</tr>
				<tr>
					<td height="1" width="1">
						<img src="image/wsoa_window_009.gif" height="16" width="14">
					</td>
					<td style="background: url('image/wsoa_window_008.gif');"
						height="1"></td>
					<td height="1" width="1">
						<img src="image/wsoa_window_007.gif" height="16" width="12">
					</td>
				</tr>
		</table>
		<div class="pageDiv">
			<form action="getLeaveTotalList.action" method="post" name="pageForm">
				<input type="hidden" name="account" value="${account}">
				<input type="hidden" name="name" value="${name}">
				<input type="hidden" name="year" value="${year}">
				<input type="hidden" name="orgName" value="${orgName}">
				<input type="hidden" id="pageId" name="currentPage">
				<%@include file="../page/page.jsp"%>
			</form>
			</div>
	</body>
</html>